package com.zzb.weixin.model.datacube;

import com.zzb.weixin.constant.WXJsonName;
import com.zzb.weixin.json.JsonObject;
/**
 * 用户增减数据
 * @author user
 *
 */
public class UserSummary {
	private String refDate;//数据的日期
	private String userSource;////用户的渠道，数值代表的含义如下：
	//0代表其他 30代表扫二维码 17代表名片分享 35代表搜号码（即微信添加朋友页的搜索） 39代表查询微信公众帐号 43代表图文页右上角菜单
	private String newUser;//新增的用户数量
	private String cancelUser;//取消关注的用户数量，new_user减去cancel_user即为净增用户数量
	public UserSummary(JsonObject jo) {
		refDate = jo.getAsString(WXJsonName.REF_DATE);
		userSource = jo.getAsString(WXJsonName.USER_SOURCE);
		newUser = jo.getAsString(WXJsonName.NEW_USER);
		cancelUser = jo.getAsString(WXJsonName.CANCEL_USER);
	}
	public String getRefDate() {
		return refDate;
	}
	public void setRefDate(String refDate) {
		this.refDate = refDate;
	}
	public String getUserSource() {
		return userSource;
	}
	public void setUserSource(String userSource) {
		this.userSource = userSource;
	}
	public String getNewUser() {
		return newUser;
	}
	public void setNewUser(String newUser) {
		this.newUser = newUser;
	}
	public String getCancelUser() {
		return cancelUser;
	}
	public void setCancelUser(String cancelUser) {
		this.cancelUser = cancelUser;
	}
}
